package com.science.slam.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName file
 */
@TableName(value ="file")
@Data
public class File implements Serializable {
    /**
     * 文件id
     */
    @TableId
    private String id;

    /**
     * 拥有者账号
     */
    private String ownerAccount;

    /**
     * 标签
     */
    private String tags;

    /**
     * 标签数量
     */
    private Integer tagsNumber;

    /**
     * 
     */
    private Date createTime;

    /**
     * 是否公开
     */
    private Integer publicType;

    /**
     * 简介
     */
    private String profile;

    /**
     * 标题
     */
    private String title;

    /**
     * 浏览量
     */
    private Integer lookNumber;

    /**
     * 点赞量
     */
    private Integer likeNumber;

    /**
     * 文件链接
     */
    private String fileUrl;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    public File(String id, String ownerAccount, String fileUrl) {
        this.id = id;
        this.ownerAccount = ownerAccount;
        this.fileUrl = fileUrl;
    }
}